package com.ptswitch.material.dao;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.ptswitch.material.model.contract.ContractItem;

public interface ContractItemMapper {
    @Select("")
    List<ContractItem> findByExamine(long id, boolean pass);

    @Select("")
    List<ContractItem> findByReceiving(long id, boolean receiving);

    @Select("")
    List<ContractItem> findByReturn(long id);

    @Select("")
    List<ContractItem> findByContract(long id);

    @Select("")
    boolean existContractItemCode(ContractItem item);

    @Select("")
    String emptyCode(String code);

    @Update("")
    void save(ContractItem item);

    @Select("")
    ContractItem findById(long id);

    @Delete("")
    void delete(ContractItem item);

    @Select("")
    List<ContractItem> findAll(long first, long size);
}
